<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/static/plugins/jquery-2.1.4/jquery.min.js"></script>
</head>
<body>
<div><a id="auth_begin"> {$err_msg}</a></div>
</body>
<script>
    $('#auth_begin').click(function() {
        $.ajax({
            url:"{:url('wx_api/login/index')}",
            success:function() {
                alert('hahaha,ni shangdangle');
            }
        });
    });
</script>
</html>